package com.adingxiong.cft.service;

import com.adingxiong.cft.entity.Role;
import com.adingxiong.cft.entity.TUser;

import java.util.List;

/**
 * @ClassName UserCacheService
 * @Description TODO
 * @Author xiongchao
 * @Date 2020/10/14 11:01
 **/
public interface UserCacheService {

    /**
     * 删除用户缓存
     * @param id
     */
    void delUser(Integer id);

    void delRole(Integer id);

    void setUserInfo(TUser userInfo);

    void setUserList(List<TUser> list);

    void setUserRoles(List<Role> list);

    TUser getUser(String username);

    List<Role> getRoles(Integer id);



}
